<template>
  <header class="cp-header" :style="{'z-index':zIndex+1}">
    <div class="cp-header-item">
      <slot name="left"></slot>
    </div>
    <div class="cp-header-item-center" @click.native="toggleIcon" ref="icon" >
      <slot name="center"></slot>
    </div>
    <div class="cp-header-item cp-header-left" @click.native="toggleIcon"  ref="icon">
      <slot name="right"></slot>
    </div>
  </header>
</template>

<script>
  export default {
    name: 'cp-header',
    data() {
      return {

      }
    },
    props:{
      zIndex:{
        type:Number,
        default:-1,
      }
    },
    methods:{
      toggleIcon(){

      }
    }
  }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
  @import url("../../css/navi.css");
</style>
